.class Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;
.super Lcom/qiniu/auth/JSONObjectRet;
.source "PublishAppActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;)V
    .registers 2
    .param p1, "this$1"    # Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    .prologue
    .line 587
    iput-object p1, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    invoke-direct {p0}, Lcom/qiniu/auth/JSONObjectRet;-><init>()V

    return-void
.end method


# virtual methods
.method public onFailure(Ljava/lang/Exception;)V
    .registers 4
    .param p1, "ex"    # Ljava/lang/Exception;

    .prologue
    .line 591
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 592
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v0, v0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$thumbnailImg:Ljava/io/File;

    if-eqz v0, :cond_1a

    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v0, v0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$thumbnailImg:Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_1a

    .line 593
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v0, v0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$thumbnailImg:Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->delete()Z

    .line 595
    :cond_1a
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v0, v0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PublishAppActivity;->mPendingUploadPictures:Ljava/util/LinkedList;
    invoke-static {v0}, Lcom/brixd/niceapp/community/activity/PublishAppActivity;->access$1400(Lcom/brixd/niceapp/community/activity/PublishAppActivity;)Ljava/util/LinkedList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/LinkedList;->removeFirst()Ljava/lang/Object;

    .line 596
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v0, v0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v1, v1, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$upToken:Ljava/lang/String;

    # invokes: Lcom/brixd/niceapp/community/activity/PublishAppActivity;->cycleUpload(Ljava/lang/String;)V
    invoke-static {v0, v1}, Lcom/brixd/niceapp/community/activity/PublishAppActivity;->access$1500(Lcom/brixd/niceapp/community/activity/PublishAppActivity;Ljava/lang/String;)V

    .line 597
    return-void
.end method

.method public onSuccess(Lorg/json/JSONObject;)V
    .registers 4
    .param p1, "obj"    # Lorg/json/JSONObject;

    .prologue
    .line 601
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v0, v0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$thumbnailImg:Ljava/io/File;

    if-eqz v0, :cond_17

    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v0, v0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$thumbnailImg:Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_17

    .line 602
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v0, v0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$thumbnailImg:Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->delete()Z

    .line 605
    :cond_17
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v0, v0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PublishAppActivity;->mImagesServerPath:Ljava/util/LinkedList;
    invoke-static {v0}, Lcom/brixd/niceapp/community/activity/PublishAppActivity;->access$1600(Lcom/brixd/niceapp/community/activity/PublishAppActivity;)Ljava/util/LinkedList;

    move-result-object v0

    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v1, v1, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$serverPath:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    .line 606
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v0, v0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PublishAppActivity;->mPendingUploadPictures:Ljava/util/LinkedList;
    invoke-static {v0}, Lcom/brixd/niceapp/community/activity/PublishAppActivity;->access$1400(Lcom/brixd/niceapp/community/activity/PublishAppActivity;)Ljava/util/LinkedList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/LinkedList;->removeFirst()Ljava/lang/Object;

    .line 607
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v0, v0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$picture:Lcom/brixd/niceapp/community/model/PictureModel;

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/model/PictureModel;->isCover()Z

    move-result v0

    if-eqz v0, :cond_46

    .line 608
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v0, v0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v1, v1, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$serverPath:Ljava/lang/String;

    # setter for: Lcom/brixd/niceapp/community/activity/PublishAppActivity;->mCoverImagePath:Ljava/lang/String;
    invoke-static {v0, v1}, Lcom/brixd/niceapp/community/activity/PublishAppActivity;->access$1702(Lcom/brixd/niceapp/community/activity/PublishAppActivity;Ljava/lang/String;)Ljava/lang/String;

    .line 610
    :cond_46
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v0, v0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13$1;->this$1:Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;

    iget-object v1, v1, Lcom/brixd/niceapp/community/activity/PublishAppActivity$13;->val$upToken:Ljava/lang/String;

    # invokes: Lcom/brixd/niceapp/community/activity/PublishAppActivity;->cycleUpload(Ljava/lang/String;)V
    invoke-static {v0, v1}, Lcom/brixd/niceapp/community/activity/PublishAppActivity;->access$1500(Lcom/brixd/niceapp/community/activity/PublishAppActivity;Ljava/lang/String;)V

    .line 611
    return-void
.end method
